/**
 *
 */
$(document).ready(function () {
    var payway = null;

    $.each($(".pay-button"), function () {
        $(this).click(function () {
            var payval = $(this).val();

            if (payval == "易学网余额支付") {
                payway = "YX";
            } else if (payval == "微信支付") {
                payway = "WC";
            } else {
                payway = "AL";
            }
            $("#payForm").find("#payway").val(payway);
            $("#payForm").submit();
        });
    });

    $(".backindex").click(function () {
        window.location.href = "/";
    });

});